package com.copa.module.goods.mapper;

import com.copa.module.goods.domain.dto.GoodsProductDto;
import com.copa.module.goods.domain.entity.GoodsProductEntity;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-14
 * @function t_goods_product表 Mapper 接口
 */
@Mapper
public interface GoodsProductDao extends BaseMapper<GoodsProductEntity> {

    List<GoodsProductDto> findGoodsSpuByGoodsId(@Param("goodsId") Long goodsId);

    BigDecimal calTotalMoney(@Param("cartIds") List<Long> cartIds);
}
